#ifndef PAINTER_H
#define PAINTER_H

#include <QWidget>

#include "tree.h"
#include "pair.hpp"
#include "queue.hpp"
#include <qpainter.h>

namespace Ui {
class Painter;
}

class Painter : public QWidget
{
    Q_OBJECT

public:
    explicit Painter(Tree *tree, QWidget *parent = nullptr);
    ~Painter();

private:
    Ui::Painter *ui;
    Tree *tree;

    void paintEvent(QPaintEvent *event) override;
};

#endif // PAINTER_H
